﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Lis.IBLL
{
    public interface IBaseService<T> where T:class,new()
    {
         IQueryable<T> GetPageEntities<S>(int pageSize, int pageIndex, out int total, bool isAsc, Expression<Func<T, bool>> whereLambda, Expression<Func<T, S>> orderByLambda);

        bool Add(T entity);

        bool UpDate(T entity);

        bool Delete(T entity);
    }
}
